package org.je.database;

import java.util.ArrayList;
import java.util.List;

/**
 * @author fanyifeng 2012-10-17 上午9:49:07
 */
public class DataSet
{
	private final List<Object>	list	= new ArrayList<Object>();

	public void putSqlResultInSet(Object tableOfInt) {
		list.add(tableOfInt);
	}

	public int size() {
		return list.size();
	}

	/**
	 * @param i
	 * @return dataTable
	 */
	public DataTable getTable(int i) {
		return (DataTable) list.get(i);
	}

	/**
	 * @param i
	 * @return int
	 */
	public int getInt(int i) {
		return (Integer) list.get(i);
	}

	/**
	 * @param i
	 * @return obj
	 */
	public Object get(int i) {
		return list.get(i);
	}

}
